﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if IE 6 ]>
  <html class="ie6">
  <![endif]-->
  <!--[if IE 7 ]>
    <html class="ie7">
    <![endif]-->
    <html xmlns="http://www.w3.org/1999/xhtml">
      
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
       <title>{config.webtitle}</title>
<meta content="{config.webkeyword}" name="keywords" />
<meta content="{config.webdescription}" name="description" />
        <!--css-->
        <%template src="cssjs.html" %>
          <!--/css-->
          <script type="text/javascript" src="<%templateskin%>/js/base.js">
          </script>
          <link href="<%templateskin%>/css/StyleSheet1.css" rel="stylesheet" type="text/css" />
      </head>
      
      <body>
        <div class="wrapper">
          <!--Header-->
          <%template src="_header.html" %>
            <!--/Header-->
            <div id="page_modules">
              <div class="center_wrapper center_lineGreen clearfix">
                <div class="left_con_m">
                  <div class="tile_left_m">
                    <div class="tile_zh">
                      订购疗程 欢迎您！
                    </div>
                    <div class="tile_en">
                      <em class="black">
                        Order
                      </em>
                      <em class="darkGreen">
                        juiceup
                      </em>
                      <em class="lightGreen">
                        Welcome
                      </em>
                    </div>
                  </div>
                  <div class="order_warp">
                    <div class="order_step">
                      <ul>
                        <li>
                          第一步：计划开始日期
                        </li>
                        <li>
                          第二步：确认
                        </li>
                        <li class="selected">
                          第三步：付款
                        </li>
                      </ul>
                    </div>
                     <%if(action=="confirm")%>
                    <div class="orderNum">
                      支付类别：{payModel.title}
                    </div>
                    <%/if%>
                    <div class="orderAlipay">
                      <%if(action=="confirm")%>
                        <form id="pay_form" name="pay_form" method="post" action="{config.webpath}api/payment/{payModel.api_path}/index.aspx"
                        target="_blank">
                          <input id="pay_order_no" name="pay_order_no" type="hidden" value="{order_no}"
                          />
                          <input id="pay_order_amount" name="pay_order_amount" type="hidden" value="{order_amount}"
                          />
                          <input id="pay_user_name" name="pay_user_name" type="hidden" value="{userModel.user_name}"
                          />
                            <input id="pay_user_type" name="pay_user_type" type="hidden" value="1"
                          />
                          <p>
                            订单提交成功，请您尽快付款！
                            <br />
                            订单号：{order_no}
                            <br />
                            应付金额（元）： ¥{order_amount}
                            <br />
                            请您在24小时内完成支付，否则订单会被自动取消。
                            <br />
                            <br />
                            选择下面的支付方式完成支付!
                            <br />
                            <br />
<a   id="btnSubmit"   href="javascript:void(0);" onclick="testpay(1);">   <img src="<%templateskin%>/images/alpayPic.gif" /></a>
                         <a   id="A1"   href="javascript:void(0);" onclick="showdiv();">   <img src="<%templateskin%>/images/alpayPic2.gif" /></a> 
                          </p>
                          <div class="darkGreen">
                            订单详情
                          </div>
                        </form>
                           <script type="text/javascript">

                               function testpay(str) {
                                   if (str == 1) {
                                       $("#pay_user_type").val("1");
                                       document.pay_form.submit();
                                   }
                                   else {
                                       var list = $('input:radio[name="bank"]:checked').val();
                                     //  alert(list);
                                       $("#pay_user_type").val(list);
                                       document.pay_form.submit();
                                   }
                               }
                               $(function () {
                                    obj = $("#confirm1");
                               });
                               function showdiv() {
                                   var dialog = $.dialog({
                                       
                                       title: '选择支付银行',
                                       content: obj.show(),
                                       min: false,
                                       max: false,
                                       lock: true,
                                       width: 400
                                   });
                              
                               }
          </script>
                        <%/if%>

<%if(action=="succeed")%>
                            <!--支付成功-->
                            <div class="orderNum">
                              恭喜您，您已经成功提交订单！ 我们将尽快和您联系！
                            </div>
                            <div class="darkGreen">
                              订单详情
                              <br />
                              订单号：{order_no}
<%if(orderModel.payment_id!=6)%>
                              <br />
                              总价：{orderModel.order_amount} RMB
<%/if%>
                            您可以点击这里进入<a href="<%linkurl("usercenter","index")%>">我的JuiceUp</a>查看订单状态！<%if(orderModel.mobile=="2")%>您已购买了疗程卡<a  href="<%linkurl("goods")%>?type=1">点击开始使用</a><%/if%>
        <p>如有其它问题，请立即与我们客服人员联系。</p>
                            </div>
                            <!--支付成功-->
                            <%/if%>
                            <%set int cdr1__loop__id=0;%>
                             
                                <%foreach(ihongma.Model.order_goods item in orderModel.order_goods)%>
                                  <div class="orderInfo_list">
                                
                                      <span class="num">
                                       <%csharp%>cdr1__loop__id++;<%/csharp%>
                                       {cdr1__loop__id}
                                       
                                      </span>
                                      <%csharp%> bool typebool=item.goods_title.Contains("卡");<%/csharp%>
                                       <%if(!typebool)%>
                                      所选计划：{item.goods_title}
                                      <%if(orderModel.post_code!="1")%>
                                        <span class="person">
                                          ×{orderModel.post_code}人／份
                                        </span>
                                        
                                          <%/if%>
                                        <%else%>
                                        {item.goods_title}  ×{item.quantity}张
                                      
                                        <%/if%>
                                         <%if(item.address_id!=0)%>
                                          <br />
                                          送达日期：<%datetostr(item.deliverytime,yyyy-MM-dd)%>
                                            <%if(!typebool)%>
                                          <br />
                                          送达时间：<%if({item.field1}=="1")%>2:00pm-6:00pm<%else%>6:00pm-10:00pm
                                              <%/if%>
                                              <%/if%>
                                             
                                          
                                         
                                                <br />
 <%set (ihongma.Model.user_address)address=getuseradd({item.address_id})%>
                                               送达地址：{address.address}
                                                  <br />
                                                  联系电话：{address.mobile}
                                                  <%/if%>
                                  </div>
                                  <%/loop%>
                    </div>
                  </div>
                </div>
                <div class="right_con_m">
                <p class="hotLineRight">欢迎拨打<br>JuiceUp 客服热线：<br>400-082-5955 <br />
										（工作日9:00am-6:00pm）</p>
										<div class="other-box current" id="confirm1" style="display:none;">
<div class="content fn-clear">
					
					<div class="bank-list">
						<ul>
							<li>
								<input type="radio" hidefocus="" value="ICBCB2C" name="bank" id="bank-icbc" checked="checked">
								<label class="bank-icbc" for="bank-icbc"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="CCB" name="bank" id="bank-ccb">
								<label class="bank-ccb" for="bank-ccb"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="ABC" name="bank" id="bank-abchina">
								<label class="bank-abchina" for="bank-abchina"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="POSTGC" name="bank" id="bank-psbc">
								<label class="bank-psbc" for="bank-psbc"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="COMM" name="bank" id="bank-bankcomm">
								<label class="bank-bankcomm" for="bank-bankcomm"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="CMB" name="bank" id="bank-cmbchina">
								<label class="bank-cmbchina" for="bank-cmbchina"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="BOCB2C" name="bank" id="bank-boc">
								<label class="bank-boc" for="bank-boc"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="CEBBANK" name="bank" id="bank-cebbank">
								<label class="bank-cebbank" for="bank-cebbank"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="CITIC" name="bank" id="bank-ecitic">
								<label class="bank-ecitic" for="bank-ecitic"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="SPDB" name="bank" id="bank-spdb">
								<label class="bank-spdb" for="bank-spdb"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="CMBC" name="bank" id="bank-cmbc">
								<label class="bank-cmbc" for="bank-cmbc"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="CIB" name="bank" id="bank-cib">
								<label class="bank-cib" for="bank-cib"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="SPABANK" name="bank" id="bank-pingan">
								<label class="bank-pingan" for="bank-pingan"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="GDB" name="bank" id="bank-cgbchina">
								<label class="bank-cgbchina" for="bank-cgbchina"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="SHRCB" name="bank" id="bank-srcb">
								<label class="bank-srcb" for="bank-srcb"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="SHBANK" name="bank" id="bank-bankofshanghai">
								<label class="bank-bankofshanghai" for="bank-bankofshanghai"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="NBBANK" name="bank" id="bank-nbcb">
								<label class="bank-nbcb" for="bank-nbcb"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="HZCBB2C" name="bank" id="bank-hccb">
								<label class="bank-hccb" for="bank-hccb"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="BJBANK" name="bank" id="bank-bankofbeijing">
								<label class="bank-bankofbeijing" for="bank-bankofbeijing"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="BJRCB" name="bank" id="bank-bjrcb">
								<label class="bank-bjrcb" for="bank-bjrcb"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="FDB" name="bank" id="bank-fudian-bank">
								<label class="bank-fudian-bank" for="bank-fudian-bank"></label>
							</li>
							<li>
								<input type="radio" hidefocus="" value="WZCBB2C-DEBIT" name="bank" id="bank-wzcb">
								<label class="bank-wzcb" for="bank-wzcb"></label>
							</li>
						</ul>

					</div>
                   
			<div class="layer_giftCard">	<div class="gc_right_con"> <div class="btnWarp">	<a class="btn" href="javascript:testpay(2);" >确认支付</a></div></div></div>
				</div></div>
                <!--right-->
                <%template src="right.html" %>
                  <!--/right-->
              </div>
            </div>
            <!--Footer-->
            <%template src="_footer.html" %>
              <!--/Footer-->